package org.example.project_12.service;

import org.example.project_12.entity.Comment;
import java.util.List;

public interface CommentService {
    Comment addComment(Long docId, Long authorId, String content, Long parentId);
    List<Comment> getCommentsByDoc(Long docId);
    Comment getCommentById(Long commentId);
    void deleteComment(Long commentId, Long userId, boolean isAdmin);
    /**
     * 获取用户所有评论
     */
    List<Comment> getCommentsByUser(Long userId);
} 